package com.java.ch021;
class Sub{
    final String subname = "subname";
    final double fpi = 3.14;
}
class textConstant{

    int number = 0;
    public void run(Object obj){
            System.out.println("是对象obj"+obj);
    }
    public void run(Sub sub){
        System.out.println("是类sub: "+sub);
    }
    private void showObject(){
        Sub sub = new Sub();
        System.out.println("sub.subname: "+sub.subname);
        System.out.println("sub.fpi: "+sub.fpi);
    }
    public static void main(String[] args) {
        textConstant constant = new textConstant();
        constant.number=5;
        System.out.println("t.i"+constant.number);
        constant.showObject();
        constant.run(null);
    }
}